{extend name="base/common"}

{block name="style"}
<!-- Toastr style -->
<link href="/admin/css/plugins/toastr/toastr.min.css" rel="stylesheet">
<!-- Gritter -->
<link href="/admin/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
<style>
    h2{
        width: 100%;
        color:#185081;
        font-size: 40px!important;
        font-weight: 600!important;
        line-height: 90px;
        text-align: center;
    }
    .con{
        height: 150px;
    }
    .con h1{
        margin-top: 5px!important;
        margin-bottom: 20px!important;
    }
    #tip{
        width: 100%;
        text-align: center;
    }
    #message tr{
        width: 100%;
    }
    #message tr td{
        width: 25%;
        height: 30px;
        padding-left: 30px;
        line-height: 30px;
    }
    #message tr td:nth-child(odd){
        background: #1c84c6;
        color:#ffffff;
    }
    #message tr td:nth-child(even) {
        background: #ffffff;
    }
</style>
{/block}

{block name="page-header"}
{/block}

{block name="main"}
<div class="wrapper wrapper-content">
    <h2>欢迎使用{$config_data.WEB_SITE_TITLE}</h2>
    <div class="row">
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-success pull-right">总数</span>
                    <h5>关注用户</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$userCount}</h1>
                    <div class="stat-percent font-bold text-success">{$userTotal}</i></div>
                    <small>用户总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-info pull-right">总数</span>
                    <h5>文章发布总数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$publishTotal}</h1>
                    <div class="stat-percent font-bold text-info">{$publishTotal}</div>
                    <small>文件上传下达发布总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-inverse pull-right">总数</span>
                    <h5>文件总数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$fileTotal}</h1>
                    <div class="stat-percent font-bold text-primary">{$fileTotal}</div>
                    <small>资源中心上传文件</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-danger pull-right">总数</span>
                    <h5>党群建设</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$constructionTotal}</h1>
                    <div class="stat-percent font-bold text-danger">{$constructionTotal}</div>
                    <small>党群建设动态总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-warning pull-right">总数</span>
                    <h5>浏览数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$browseTotal}</h1>
                    <div class="stat-percent font-bold text-danger">{$browseTotal}</div>
                    <small>浏览总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-danger pull-right">总数</span>
                    <h5>评论数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$commentTotal}</h1>
                    <div class="stat-percent font-bold text-warning">{$commentTotal}</div>
                    <small>文章评论总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label  label-success pull-right">总数</span>
                    <h5>点赞数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$likeTotal}</h1>
                    <div class="stat-percent font-bold text-success">{$likeTotal}</div>
                    <small>文章评论点赞总数</small>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-primary pull-right">总数</span>
                    <h5>收藏数</h5>
                </div>
                <div class="ibox-content con">
                    <h1 class="no-margins">{$collectTotal}</h1>
                    <div class="stat-percent font-bold text-navy">{$collectTotal}</div>
                    <small>文章收藏总数</small>
                </div>
            </div>
        </div>
    </div>
    <div class="row" style="margin-top: 40px">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5 id="tip">服务器信息</h5>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered" id="message">
                        <tr>
                            <td>PHP版本：</td>
                            <td>{$server_config['version']}</td>
                            <td>MYSQL版本：</td>
                            <td>{$server_config['mysql_version']}</td>
                        </tr>
                        <tr>
                            <td>服务器端信息：</td>
                            <td>{$server_config['os']}</td>
                            <td>服务器所在时间：</td>
                            <td>{$server_config['time']}</td>

                        </tr>
                        <tr>
                            <td>最大执行时间：</td>
                            <td>{$server_config['max_ex_time']}</td>
                            <td>最大上传限制：</td>
                            <td>{$server_config['max_upload']}</td>
                        </tr>
                        <tr>
                            <td>当前主机名：</td>
                            <td>{$server_config['pc']}</td>
                            <td>服务器语言：</td>
                            <td>{$server_config['language']}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>

</div>
{/block}

{block name="script"}
<!-- Flot -->
<script src="/admin/js/plugins/flot/jquery.flot.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.spline.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.resize.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.pie.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.symbol.js"></script>
<script src="/admin/js/plugins/flot/jquery.flot.time.js"></script>
<script>
    /* 插件块关闭操作 */
    $(".title-opt .wm-slide").each(function(){
        $(this).click(function(){
            $(this).closest(".columns-mod").find(".bd").toggle();
            $(this).find("i").toggleClass("mod-up");
        });
    })
</script>
{/block}